home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / flex / flexb237.zoo / atari.diffs next >
Text File  |  1991-04-09  |  3KB  |  138 lines

  1. *** flex.skel.orig    Mon Sep  3 21:34:09 1990
  2. --- flex.skel    Mon Apr  8 18:27:49 1991
  3. ***************
  4. *** 51,57 ****
  5. --- 51,66 ----
  6.   #define YY_USE_CONST
  7.   #endif
  8.   
  9. + #ifdef atarist
  10. + #include <stdlib.h>
  11. + #include <string.h>
  12. + #include <memory.h>
  13. + #define YY_INPUT(buf,result,max_size) \
  14. +     if ( (result = _yyread( fileno(yyin), (char *) buf, max_size )) < 0 ) \
  15. +         YY_FATAL_ERROR( "read() in flex scanner failed" );
  16. + #endif
  17.   
  18.   #ifndef YY_USE_CONST
  19.   #define const
  20.   #endif
  21. ***************
  22. *** 90,98 ****
  23. --- 99,109 ----
  24.   /* gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
  25.    * is returned in "result".
  26.    */
  27. + #ifndef YY_INPUT
  28.   #define YY_INPUT(buf,result,max_size) \
  29.       if ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
  30.           YY_FATAL_ERROR( "read() in flex scanner failed" );
  31. + #endif
  32.   #define YY_NULL 0
  33.   
  34.   /* no semi-colon after return; correct usage is to write "yyterminate();" -
  35. *** flexdef.h.orig    Mon Sep  3 21:34:09 1990
  36. --- flexdef.h    Mon Apr  8 16:43:56 1991
  37. ***************
  38. *** 72,80 ****
  39. --- 72,82 ----
  40.   #ifdef SCO_UNIX
  41.   void *memset();
  42.   #else
  43. + #ifndef atarist
  44.   char *memset();
  45.   #endif
  46.   #endif
  47. + #endif
  48.   
  49.   #ifdef AMIGA
  50.   #define bzero(s, n) setmem((char *)(s), n, '\0')
  51. ***************
  52. *** 90,95 ****
  53. --- 92,105 ----
  54.   #define SHORT_FILE_NAMES
  55.   #endif
  56.   
  57. + #ifdef atarist
  58. + #include <string.h>
  59. + #include <stdlib.h>
  60. + #include <unistd.h>
  61. + #include <memory.h>
  62. + #define SHORT_FILE_NAMES
  63. + #endif
  64.   #ifdef __STDC__
  65.   
  66.   #ifdef __GNUC__
  67. ***************
  68. *** 109,115 ****
  69. --- 119,129 ----
  70.   #define MAXLINE BUFSIZ
  71.   
  72.   /* maximum size of file name */
  73. + #ifndef FILENAME_MAX /* ansi compliant headers have this */
  74.   #define FILENAMESIZE 1024
  75. + #else
  76. + #define FILENAMESIZE FILENAME_MAX
  77. + #endif
  78.   
  79.   #ifndef min
  80.   #define min(x,y) ((x) < (y) ? (x) : (y))
  81. ***************
  82. *** 813,818 ****
  83. --- 827,834 ----
  84.   extern void synerr PROTO((char []));    /* report a syntax error */
  85.   extern int yyparse PROTO(());    /* the YACC parser */
  86.   
  87. + extern void build_eof_action PROTO(());
  88. + extern void yyerror PROTO((char[]));
  89.   
  90.   /* from file scan.l */
  91.   
  92. ***************
  93. *** 866,871 ****
  94. --- 882,889 ----
  95.   
  96.   /* The Unix kernel calls used here */
  97.   
  98. + #ifndef atarist
  99.   extern int read PROTO((int, char*, int));
  100.   extern int unlink PROTO((char*));
  101.   extern int write PROTO((int, char*, int));
  102. + #endif
  103. *** main.c.orig    Mon Apr  8 16:17:25 1991
  104. --- main.c    Tue Apr  9 10:04:06 1991
  105. ***************
  106. *** 104,110 ****
  107.   static int outfile_created = 0;
  108.   static int use_stdout;
  109.   static char *skelname = NULL;
  110.   
  111.   int main( argc, argv )
  112.   int argc;
  113. --- 104,112 ----
  114.   static int outfile_created = 0;
  115.   static int use_stdout;
  116.   static char *skelname = NULL;
  117. ! #ifdef atarist
  118. ! long _stksize = -1L;    /* need lots of stk+heap */
  119. ! #endif
  120.   
  121.   int main( argc, argv )
  122.   int argc;
  123. ***************
  124. *** 597,602 ****
  125. --- 599,607 ----
  126.       lerrsf( "can't open skeleton file %s", skelname );
  127.   
  128.   #ifdef SYS_V
  129. +     action_file_name = tmpnam( NULL );
  130. + #endif
  131. + #ifdef atarist
  132.       action_file_name = tmpnam( NULL );
  133.   #endif
  134.   
  135.